package imp.clases;
import java.io.Serializable;

import org.hibernate.*;
import org.hibernate.cfg.Configuration;

public class Ejecutar implements Serializable {
	
	public static void main(String[] args){
		Session session =null;
		try{
			SessionFactory sessionFactory=new Configuration().configure().buildSessionFactory();
			session=sessionFactory.openSession();
			
		}catch(Exception e){
		 System.out.println(e.getMessage());	
			
		}finally{
			
			session.flush();
			session.close();
			
		}
			
			
		
		
		
	}
	

}
